package com.octopus.optiworks.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.JoinColumn;

@Entity
@Table
public class Step10_2Data implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private Long id;
	
	private String pb2;
	
	private String transIl;
	
	private String ripple;
	
	private String transHeight;
	
	private String dd;
	
	private String dcwl;
	
	private String pbw;
	
	private String reflectHeigh;
	
	private String d1d2;
	
	private String operator;
	
	private Date date;
	
	private String testResult;
	
	private Product product;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column
	public String getPb2() {
		return pb2;
	}

	public void setPb2(String pb2) {
		this.pb2 = pb2;
	}

	@Column
	public String getTransIl() {
		return transIl;
	}

	public void setTransIl(String transIl) {
		this.transIl = transIl;
	}

	@Column
	public String getRipple() {
		return ripple;
	}

	public void setRipple(String ripple) {
		this.ripple = ripple;
	}

	@Column
	public String getTransHeight() {
		return transHeight;
	}

	public void setTransHeight(String transHeight) {
		this.transHeight = transHeight;
	}

	@Column
	public String getDd() {
		return dd;
	}

	public void setDd(String dd) {
		this.dd = dd;
	}

	@Column
	public String getDcwl() {
		return dcwl;
	}

	public void setDcwl(String dcwl) {
		this.dcwl = dcwl;
	}

	@Column
	public String getPbw() {
		return pbw;
	}

	public void setPbw(String pbw) {
		this.pbw = pbw;
	}

	@Column
	public String getReflectHeigh() {
		return reflectHeigh;
	}

	public void setReflectHeigh(String reflectHeigh) {
		this.reflectHeigh = reflectHeigh;
	}

	@Column
	public String getD1d2() {
		return d1d2;
	}

	public void setD1d2(String d1d2) {
		this.d1d2 = d1d2;
	}

	@Column
	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	@Column
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	@Column
	public String getTestResult() {
		return testResult;
	}

	public void setTestResult(String testResult) {
		this.testResult = testResult;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PRODUCTID")
	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}
	
}
